import 'package:flutter/material.dart';

class RoomPageTagInheritedWidget extends InheritedWidget {
  final String tag;
  const RoomPageTagInheritedWidget({
    required this.tag,
    required Widget child,
  }) : super(child: child);

  static RoomPageTagInheritedWidget? of(BuildContext context) =>
      context.dependOnInheritedWidgetOfExactType<RoomPageTagInheritedWidget>();

  @override
  bool updateShouldNotify(RoomPageTagInheritedWidget oldWidget) => tag != oldWidget.tag;
}